﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using SelfService.Model.Models;


namespace SelfService.ViewModel.SysDoctorVMs
{
    public partial class SysDoctorTemplateVM : BaseTemplateVM
    {
        [Display(Name = "HisId")]
        public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<SysDoctor>(x => x.Code);
        [Display(Name = "医生名称")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<SysDoctor>(x => x.Name);
        [Display(Name = "诊室")]
        public ExcelPropety Room_Excel = ExcelPropety.CreateProperty<SysDoctor>(x => x.RoomId);
        [Display(Name = "图片")]
        public ExcelPropety Photo_Excel = ExcelPropety.CreateProperty<SysDoctor>(x => x.Photo);
        [Display(Name = "职称")]
        public ExcelPropety DoctorLevel_Excel = ExcelPropety.CreateProperty<SysDoctor>(x => x.DoctorLevel);
        [Display(Name = "擅长信息")]
        public ExcelPropety Info_Excel = ExcelPropety.CreateProperty<SysDoctor>(x => x.Info);
        [Display(Name = "总金额")]
        public ExcelPropety TotalFee_Excel = ExcelPropety.CreateProperty<SysDoctor>(x => x.TotalFee);
        [Display(Name = "诊疗费")]
        public ExcelPropety ExamFee_Excel = ExcelPropety.CreateProperty<SysDoctor>(x => x.ExamFee);
        [Display(Name = "挂号费")]
        public ExcelPropety ClinicFee_Excel = ExcelPropety.CreateProperty<SysDoctor>(x => x.ClinicFee);
        [Display(Name = "工作日")]
        public ExcelPropety Workday_Excel = ExcelPropety.CreateProperty<SysDoctor>(x => x.Workday);

	    protected override void InitVM()
        {
            Room_Excel.DataType = ColumnDataType.ComboBox;
            Room_Excel.ListItems = DC.Set<SysRoom>().GetSelectListItems(Wtm, y => y.DepartmentName);
        }

    }

    public class SysDoctorImportVM : BaseImportVM<SysDoctorTemplateVM, SysDoctor>
    {

    }

}
